import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入并且注册所有的elementUI组件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'

import ImageView from '@/components/image-view'
// 全局引入
import MyDrawer from './components/my-drawer/index'
Vue.use(MyDrawer)

Vue.component('ImageView', ImageView)

Vue.prototype.$http = axios
//
Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
